<?php

/**
*
*/
class LoginSuccess extends Controller
{

	function __construct()
	{
		parent::__construct();
		Session::init();
		$logged = Session::get('loggerIn');
		if($logged == false){
			Session::destroy();
			header('location: login');
			exit;
		}else {

		}
	}

	function index()
	{
		$this->view->render('Page/login_success');
	}

	function logout(){
		Session::destroy();
		header('location: ../login');
		exit;
	}

}


?>